#include <iostream>
#include"unique_ptr.h"

int main()
{
	int* p = new int(1);
	unique_ptr<int> t1(p);
	std::cout << ++(*t1) << std::endl;
	std::cout << t1.get() << std::endl;
	if (p == nullptr)
		std::cout << "int* p is nullptr" << std::endl;

	p = new int(15);
	t1.reset(p);
	std::cout << *t1 << std::endl;

	return 0;
}